/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.core.logisoft.db;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBConnection {

    private static Connection con = null;

    public static Connection getConnection() {
        if (con == null) {
            init();
        }
        return con;
    } 

    private static void init() {
        try {
            Class.forName("com.mysql.jdbc.Driver").newInstance();
            con = DriverManager.getConnection("jdbc:mysql://cong:3306/econocaribe_qa_test",
                    "std_product", "cong2006");
        } catch (Exception e) {
            System.err.println("Exception: " + e.getMessage());
            //con.close(); 
        }         
    }
}